Skip to content

[3.15] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926)#154322

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-70f7c6c-3.15
Jul 21, 2026
Merged

[3.15] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926)#154322
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-70f7c6c-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

"$" does not match before "\r" even in the MULTILINE mode, so such a
field was not found and the delimiter was guessed from character
frequencies instead, which could give a letter.
(cherry picked from commit 70f7c6c)

Co-authored-by: Zhou Wei lilaboc.cn@gmail.com
Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

pythonGH-103926)

"$" does not match before "\r" even in the MULTILINE mode, so such a
field was not found and the delimiter was guessed from character
frequencies instead, which could give a letter.
(cherry picked from commit 70f7c6c)

Co-authored-by: Zhou Wei <lilaboc.cn@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 21, 2026 05:30
@serhiy-storchaka
serhiy-storchaka merged commit c0129a0 into python:3.15 Jul 21, 2026
58 checks passed
@miss-islington
miss-islington deleted the backport-70f7c6c-3.15 branch July 21, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants